// 组织架构
import Mock from 'mockjs2';
import { builder } from '../util';
import { allParty, allMember } from '../moudles/organization';

// 获取所有部门
const readAllParty = () => {
  return builder(allParty, '', 200);
};

// 获取所有人员
const readAllMember = () => {
  return builder(allMember, '', 200);
};

Mock.mock(/\/organization\/party\/cache/, 'get', readAllParty);
Mock.mock(/\/organization\/member\/cache/, 'get', readAllMember);
